package com.cvicse.jrcompetition01.common.exception;

/**
 * Description:
 * 异常枚举类
 */
public enum BusinessExceptionEnum {
    SYSTEM_ERROR(20000, "系统异常"),
    MECHANISM_CREATE_ERRPR(30001,"创建部门异常")

    ;
    /**
     * 异常码
     */
    Integer code;
    /**
     * 异常信息
     */
    String msg;

    BusinessExceptionEnum(Integer code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }
}
